home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / NEW - Stylish / Bin / stylish-0.2.1-fx+fl+tb.xpi / chrome / stylish.jar / content / stylish.xul < prev    next >
Extensible Markup Language  |  2005-12-28  |  4KB  |  107 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://stylish/skin/" type="text/css"?>
  4.  
  5. <!--
  6.     This code is licensed under the GPL (http://www.gnu.org/copyleft/gpl.txt) 
  7.     Author: Jason Barnabe <jason_barnabe@fastmail.fm>
  8. -->
  9.  
  10. <!DOCTYPE dialog [
  11.     <!ENTITY % stylish SYSTEM "chrome://stylish/locale/stylish.dtd">
  12.     <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  13.     %stylish;
  14.     %brandDTD;
  15. ]>
  16.  
  17. <dialog
  18.     id="stylish-window"
  19.     title="&stylish.managewindow.title;"
  20.     orient="vertical"
  21.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  22.     xmlns:stylish="urn:stylish"
  23.     buttons="accept"
  24.     onload="stylish.manageInit()"
  25.     windowtype="stylish"
  26.     persist="screenX screenY width height">
  27.     
  28.     <script type="application/javascript" src="rdfds.js"/>
  29.     <script type="application/javascript" src="stylishCommon.js"/>
  30.     <script type="application/javascript" src="stylish.js"/>
  31.  
  32.     <stringbundle id="strings" src="chrome://stylish/locale/stylish.properties"/>
  33.  
  34.     <description>
  35.         &stylish.managewindow.info;
  36.     </description>
  37.  
  38.     <hbox flex="1">
  39.  
  40.         <tree id="styles" flex="1" datasources="rdf:null" ref="urn:stylish:userstyles" onselect="stylish.changeSelection()" onkeypress="stylish.styleListKeyPress(event)" editable="true">
  41.  
  42.             <treecols>
  43.                 <treecol id="description-label" label="&stylish.description;" flex="1" persist="width ordinal hidden" sortActive="true"/>
  44.                 <splitter class="tree-splitter"/>
  45.                 <treecol id="enabled-label" label="&stylish.enabled;" persist="width ordinal hidden" type="checkbox" editable="true"/>
  46.                 <splitter class="tree-splitter"/>
  47.                 <treecol id="code-label" label="&stylish.code;" flex="3" hidden="true" persist="width ordinal hidden"/>
  48.             </treecols>
  49.  
  50.             <template>
  51.  
  52.                 <rule>
  53.                     <treechildren ondblclick="stylish.handleStyleListDoubleClick(event)" onclick="stylish.handleStyleListClick(event)">
  54.                         <treeitem uri="rdf:*">
  55.                             <treerow>
  56.                                 <treecell label="rdf:urn:stylish#description"/>
  57.                                 <treecell value="rdf:urn:stylish#enabled" editable="true"/>
  58.                                 <treecell label="rdf:urn:stylish#code"/>
  59.                             </treerow>
  60.                         </treeitem>
  61.                     </treechildren>
  62.                 </rule>
  63.  
  64.             </template>
  65.         </tree>
  66.  
  67. <!--
  68.         <tree id="styles" flex="1" datasources="rdf:null" ref="urn:stylish:userstyles" onselect="stylish.changeSelection()" onkeypress="stylish.styleListKeyPress(event)" ondblclick="stylish.handleStyleListDoubleClick(event)" flags="dont-build-conten" editable="true">
  69.  
  70.             <treecols>
  71.                 <treecol id="description-label" label="&stylish.description;" flex="1" persist="width ordinal hidden sortActive sortDirection" sortActive="true" sort="rdf:urn:stylish#description" sortDirection="ascending" class="sortDirectionIndicator"
  72. />
  73.                 <splitter class="tree-splitter"/>
  74.                 <treecol id="enabled-label" label="&stylish.enabled;" persist="width ordinal hidden sortActive sortDirection" type="checkbox" editable="true" sort="rdf:urn:stylish#enabled" class="sortDirectionIndicator"/>
  75.                 <splitter class="tree-splitter"/>
  76.                 <treecol id="code-label" label="&stylish.code;" flex="3" hidden="true" persist="width ordinal hidden sortActive sortDirection" sort="rdf:urn:stylish#code" class="sortDirectionIndicator"/>
  77.             </treecols>
  78.  
  79.             <template>
  80.  
  81.                 <rule>
  82.                     <treechildren>
  83.                         <treeitem uri="rdf:*">
  84.                             <treerow>
  85.                                 <treecell label="rdf:urn:stylish#description"/>
  86.                                 <treecell value="rdf:urn:stylish#enabled" editable="true"/>
  87.                                 <treecell label="rdf:urn:stylish#code"/>
  88.                             </treerow>
  89.                         </treeitem>
  90.                     </treechildren>
  91.                 </rule>
  92.  
  93.             </template>
  94.         </tree>
  95. -->
  96.  
  97.         <vbox>
  98.             <button id="add" label="&stylish.add;" oncommand="stylish.openAdd()"/>
  99.             <button id="edit" label="&stylish.edit;" oncommand="stylish.handleEditButtonClick()" disabled="true"/>
  100.             <button id="disable" label="&stylish.toggleenabled;" oncommand="stylish.handleEnableButtonClick()" disabled="true"/>
  101.             <separator/>
  102.             <button id="delete" label="&stylish.delete;" oncommand="stylish.deleteStyle()" disabled="true"/>
  103.         </vbox>
  104.     </hbox>
  105.  
  106. </dialog>
  107.